
import 'package:tihai/entity/base.dart';

class TypeBean extends BaseBean{

  late int id;

  late int parentId;

  late String name;

  late String imageUrl;

  @override
  TypeBean fromJson(Map<String, dynamic> data) {
    TypeBean categoryBean = TypeBean();
    categoryBean.id = data["id"];
    categoryBean.parentId = data["parentId"];
    categoryBean.name = data["name"];
    categoryBean.imageUrl = data["imageUrl"];
    return categoryBean;
  }

}